
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加书籍</title>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<%--    <link rel="stylesheet" href="\style\add.css">--%>
    <link href="${pageContext.request.contextPath}\style\add.css" rel="stylesheet">
</head>
<body>
<div class="form-container">
    <div class="form-header">
        <h2 class="form-title">
            <i class="material-icons">add_circle</i>
            添加书籍
        </h2>
        <a href="index.jsp" class="back-btn">
            <i class="material-icons">arrow_back</i>
            返回
        </a>
    </div>

    <form action="addbook" method="POST">
        <div class="form-group">
            <label for="name">书名</label>
            <input type="text" id="name" name="name" required
                   placeholder="请输入书名">
        </div>

        <div class="form-group">
            <label for="author">作者</label>
            <input type="text" id="author" name="author" required
                   placeholder="请输入作者">
        </div>

        <div class="form-group">
            <label for="publisher">出版社</label>
            <input type="text" id="publisher" name="publisher" required
                   placeholder="请输入出版社">
        </div>

        <div class="form-group">
            <label for="price">价格</label>
            <div class="price-input">
                <input type="number" id="price" name="price" required
                       step="0.01" min="0"
                       placeholder="请输入价格">
            </div>
        </div>

        <div class="button-group">
            <button type="button" class="btn btn-cancel" onclick="window.location.href='index.jsp'">
                <i class="material-icons">close</i>
                取消
            </button>
            <button type="submit" class="btn btn-submit">
                <i class="material-icons">check</i>
                确认添加
            </button>
        </div>
    </form>
</div>
</body>
</html>
